﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.BLL;

public partial class deletefasongcheck : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //接收复选文本框的所对应的发送消息ID
        string ck = this.Request["deletecheck"];
        //用split（）方法制定将接收字符串按'，'逗号分割成数组
        string[] beixuan = ck.Split(',');
        //循环取出ID进行删除
        foreach (string id in beixuan)
        {
            //循环取出ID进行删除
            int jid = Int32.Parse(id);
            messageBLL.Delete(jid);            
        }
        this.Response.Write(string.Format(GetRedirect.REDIRECT, "fasongjilu.aspx"));        
    }
}
